<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lamp</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="navigation">
      
        <div class="nav-left">
            <img class="two" src="三横线.png">
            <img class="one" src="lamp.png">
            

            
        </div>

        <div class="nav-right">
            <ul>
                <li><a href="">Lastest</a></li>
                <li><a href="">Morden</a></li>
                <li><a href="">Contenporay</a></li>
                <li><a href="">Affordable</a></li>
            </ul>

            <div class="switch">
                <div class="dot"></div>
            </div>
            

        </div>
    </div>

    <div class="content">
        <div class="content-left">
            <img class="light" src="灯.png">
            <img class="line" src="光线.png">
        </div>
        <div class="content-right">
            <div class="title">
                Latest in Lighting</div>
            <div class="mid">
This is the first lamp from our<br> company.We're making a huge<br> collection of modern lamps in all<br> categories from home use to office<br> use
            </div>
            <div class="check">
                Check all collections
            </div>
        </div>
    </div>

    <script>
        var switchBtn = document.querySelector(".switch")
        var dotBtn = document.querySelector(".dot")
        var lineImg = document.querySelector(".line")

        switchBtn.addEventListener("click",()=>{
            switchBtn.classList.toggle("switch-off")
            dotBtn.classList.toggle("dot-off")
            lineImg.classList.toggle("line-off")
        })
    </script>
</body>
</html>